package com.atguigu.atcrowdfunding.service;

import com.atguigu.atcrowdfunding.bean.Permission;
import com.atguigu.atcrowdfunding.bean.User;

import java.util.List;

/**
 * lcd  2020/4/1
 * Description:
 */
public interface PermissionService {
    List<Permission> findPermissionsByPid(int pid);

    List<Permission> findAll();

    void insert(Permission permission);

    Permission findById(Integer id);

    void update(Permission permission);

    void delete(Integer id);

    List<Integer> findPermissionsByRoleId(Integer roleid);

    List<Permission> findPermissionsByUser(User dbUser);
}
